
<style type="text/css">
    span{
        color: red;
    }
</style>
<div class="task1">
    <?php
    foreach ($getresult->result() as $rows) {
        echo form_open('teacher/edit/' . $this->uri->segment('3'));
        echo '<div class="form-wrapper">';
        echo '<fieldset style="margin: 0 auto;width:60%;height: auto;border: 1px #ccc solid; padding:20px 15px 20px 15px;-moz-border-radius:10px;">';
        echo '<legend align="center"><div class="heading" style="margin: 0 auto;width: 100%;height: auto;border: 0px #ccc solid;text-align: center;font-size: 20px;color:#006600;">Edit Teacher</div></legend>';
        echo '<div style="float: right; border: 0px #ccc solid;">';
        echo anchor('teacher/manager', img('images/user_images/cancel.png'));
        echo '</div>';
        echo '<table align="center">';
        echo '<tr>';
            echo '<td>TeacherName<span>*</span></td>';
            echo '<td>:' . form_input(array('name' => 'txtTeach_n', 'id' => 'idpass', 'value' => "$rows->tea_name")) . '</td>';
            echo '</td>';
        echo '</tr>';
        echo '<tr>';
            echo '<td>StudentNumber</td>';
            echo '<td>:' . form_input('txtstu_n', $rows->stu_number) . '</td>';
        echo '</tr>';
        echo '<tr>';
            echo '<td>Date &nbsp;</td>';
            ?>
        <td>:<input type="text" name="mydate" class="datepicker"  value="<?php echo $rows->date ?>" /><?php echo form_error('mydate'); ?></td> 
    </tr>
    <?php
    echo '<tr>';
    echo '<td>Class &Time</td>';
    echo '<td>: ' . form_input(array('name' => 'txtclas_time', 'id' => 'idemail', 'value' => "$rows->class_time")) . '</td>';
    echo '</tr>';
    echo '<tr>';
    echo '<td>Detail</td>';
//echo '<td>'.form_textarea('txtarea',$rows->tea_description).'</td>';
    echo '<td> ' . form_textarea(array('name' => 'txtarea', 'rows' => '8', 'cols' => '50', 'value' => $rows->tea_description)) . '</td>';
    echo '</tr>';
    echo '<tr>';
    echo '<td></td>';
    echo '<td>' . form_submit('btn_submit', 'Update') . form_reset('btn_reset', 'Reset') . '</td>';
    echo '</tr>';
    echo '</table>';
    echo '</fieldset>';
    echo '</div>';
    echo form_close();
}
?>
</div>